package net.ikenway.springboot.demo.oauth.Entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

/**
 * @author MasterKenway <zk@ikenway.net>
 * @Description
 * @date Created Date 12/4/2020
 */
@Getter
@Setter
public class User extends org.springframework.security.core.userdetails.User {
    private String login;
    private String id;
    private String avatar;
    private String url;

    public User(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }

    public User(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
    }
}
